package deepclone.serialize;

/**
 * @author wangLin
 * @version 1.0
 * @projectName singletonPattern20210416
 * @className Attachment
 * @date 2021-04-16 周五
 * @time 8:43
 * @description TODO
 */

import java.io.Serializable;

/**
 * 附件类
 */
public class Attachment implements Serializable {
    /**
     * 附件名
     */
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void download() {
        System.out.println("下载附件，文件名为：" + name);
    }
}
